package com.marktotop.file.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.classgraph.json.Id;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author WXLD
 * @data 2021/4/20 - 14:33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel("文件实体类")
public class TbFile {

    @ApiModelProperty("文件id")
    private int id;

    @ApiModelProperty("文件名")
    private String fileName;

    @ApiModelProperty("文件地址")
    private String fileUrl;

    @ApiModelProperty("文件类型(后缀名)")
    private String fileType;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty("文件大小")
    private String fileSize;

    @ApiModelProperty("文件下载次数")
    private int downloadNum;
}
